#ifndef _RSS_UI_MANAGER_H_
#define _RSS_UI_MANAGER_H_
#include "Rss_UI_Login.h"
#include "Rss_UI_ShowFeed.h"
#include "Rss_UI_ProgressDlg.h"
#include "Rss_UI_UserInfo.h"
#include "Rss_UI_ShowItems.h"
#include "Rss_UI_ViewItem.h"
#include "Rss_UI_AddFeed.h"
#include "Rss_UI_LocalItem.h"
#include "Rss_UI_SearchFeed.h"

class Rss_UI_Manager : public Rss_UI_Base
{
private:
	static Rss_UI_Manager* p_manager;
	Rss_UI_Login login;
	Rss_UI_ShowFeed feed;
	Rss_UI_ProgressDlg progress;
	Rss_UI_UserInfo info;
	Rss_UI_ShowItems items;
	Rss_UI_ViewItem feedItem;
	Rss_UI_AddFeed addfeed;
	Rss_UI_LocalItem local;
	Rss_UI_SearchFeed searchfeed;

public:
	Rss_UI_Manager();

	virtual void Hide();

	virtual void SetHandle(HWND h_wnd);

	virtual void Show();

	void RefreshWindow();

	virtual LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);
	virtual void OnMzCommand(WPARAM wParam, LPARAM lParam);
	virtual void OnTimer(UINT_PTR nIDEvent);
public:
	static Rss_UI_Manager* GetManager();
	void UI_ShowInfo();
	void UI_ShowLogin();
	void UI_ShowFeeds();
	void UI_ShowFeedItems();
	void UI_AddFeed();
	void UI_ViewFeedItem(MyListItemData* p_listdata,bool backToLocal = false);
	void UI_ViewLocalItem(int backToLogin = 0);
	void UI_SearchFeed();
};
#endif
